package br.elsa.survey.services.events;

import br.elsa.survey.domain.questions.Question;

/**
 * Event fired when a question is removed from the system
 * 
 * @author diego
 * @since 2010-10-27
 */
public class QuestionRemovedEvent {

	/**
	 * The removed question
	 */
	private final Question question;

	/**
	 * Creates an instance of the event with the removed question
	 * 
	 * @param question
	 *            the removed question
	 */
	public QuestionRemovedEvent(Question question) {
		this.question = question;
	}

	/**
	 * Gets the removed question
	 * 
	 * @return the removed question
	 */
	public Question getQuestion() {
		return question;
	}

}
